package main

import (
	"fmt"
	"sanguo/node/common/actionEvent"
)

func GetItem(arg ...interface{}) {

	fmt.Println("GetItem", arg)

}

func GetItem1(arg ...interface{}) {
	fmt.Println("GetItem1", arg)
}

func main() {

	actionEvent.Register("GetItem", GetItem)
	actionEvent.Register("GetItem1", GetItem1)

	a := actionEvent.Analysis("#GetItem(30003,231,30001)#GetItem1(2,100)#GetItem1(1000)")

	for _, v := range a {
		actionEvent.DoActionEvent(v.ActionName, v.Params)
	}

}
